<!DOCTYPE html>
<html lang="en" xmlns:th="http://www.thymeleaf.org">
<head>
  <meta charset="utf-8">
  <meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0">
  <meta name="description" content="">
  <meta name="author" content="ThemeBucket">
  <link rel="shortcut icon" href="#" type="image/png">

  <title>Basic Table</title>

    <div th:include="commons :: comhead"></div>

    <!-- 这是js-->
    <script type="text/javascript">
        function myCheck(form) {
            var test = form;
            if (test.nmark.value!=""){
                return true;
            } else {
                alert("公告内容不能为空！")
                return false;
            }
        }
    </script>
</head>

<body class="sticky-header">

<section>
    <!-- left side start-->
    <div th:replace="commons :: #left"></div>
     <!-- left side end-->
    
    <!-- main content start-->
    <div class="main-content" >

        <!-- header section start-->
        <div th:replace="commons :: #search"></div>
        <!-- header section end-->

        <!-- page heading start-->
        
        <!-- page heading end-->

        <!--body wrapper start-->
        
            <div class="row" style="width: 200%">
            <div class="col-sm-6">
                <section class="panel">
                    <header class="panel-heading no-border">
                       		发布公告：
                            <span class="tools pull-right">
                                <a href="javascript:;" class="fa fa-chevron-down"></a>
                                <a href="javascript:;" class="fa fa-times"></a>
                             </span>
                    </header>
                    <form class="panel-body" th:action="@{/boss_add_notice}" method="post" onSubmit="return myCheck(this)">
                        <input  th:value="${session.user.id}" type="hidden" name="eid"/>
                        <table class="table table-bordered">
                            <thead>
                            <tr>
                                <th style="width: 15%;text-align: center;vertical-align: middle !important; "  rows="5">公告内容</th>
                                <th><textarea rows="5" cols="100"  placeholder="请输入公告内容" name="nmark"></textarea></th>
                            </tr>
                            </thead>
                        </table>
                        <input class="btn btn-info" type="submit" value="发布公告"/>
                    </form>
                </section>
            </div>
            
        </div>
            
        </div>
        <!--body wrapper end-->

        <!--footer section start-->
        <footer>
            2020 &copy; AdminEx by ThemeBucket </a>
        </footer>
        <!--footer section end-->


    </div>
    <!-- main content end-->
</section>

<!-- Placed js at the end of the document so the pages load faster -->
<div th:replace="commons :: js"></div>

<!--common scripts for all pages-->

</body>
</html>
